package com.example.fall_guard_band.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("elderly_health_info")
public class ElderlyHealthInfo {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("elderly_id")
    private Long elderlyId;

    @TableField("measurement_time")
    private LocalDateTime measurementTime;

    @TableField("height_cm")
    private BigDecimal heightCm;

    @TableField("weight_kg")
    private BigDecimal weightKg;

    @TableField("bmi")
    private BigDecimal bmi;

    @TableField("blood_pressure_systolic")
    private Integer bloodPressureSystolic;

    @TableField("blood_pressure_diastolic")
    private Integer bloodPressureDiastolic;

    @TableField("heart_rate_bpm")
    private Integer heartRateBpm;

    @TableField("blood_sugar_mmol")
    private BigDecimal bloodSugarMmol;

    @TableField("oxygen_saturation_pct")
    private Integer oxygenSaturationPct;

    @TableField("temperature_c")
    private BigDecimal temperatureC;

    @TableField("mobility_level")
    private Integer mobilityLevel;

    @TableField("risk_level")
    private Integer riskLevel;

    @TableField("fall_event")
    private Integer fallEvent;

    @TableField("fall_description")
    private String fallDescription;

    @TableField("chronic_diseases")
    private String chronicDiseases;

    @TableField("medications")
    private String medications;

    @TableField("allergies")
    private String allergies;

    @TableField("note")
    private String note;

    @TableField("created_by")
    private Long createdBy;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;
}